<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>学生信息浏览 - 学生宿舍管理系统</title>
		<link rel="shortcut icon" href="/img/head.png" type="image/x-icon">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">

		<link rel="stylesheet" href="/layui/css/layui.css" media="all">
	</head>
	<body>


		<div class="layui-layout layui-layout-admin">
			<div class="layui-header">
				<div class="layui-logo">学生宿舍管理系统</div>
				<!-- 头部区域（可配合layui 已有的水平导航） -->
				<ul class="layui-nav layui-layout-right">
					<li class="layui-nav-item">
						<a href="javascript:;">
							<img src="/img/by.png" class="layui-nav-img">
							测试用户
						</a>
						<dl class="layui-nav-child">
							<dd><a href="">set 1</a></dd>
							<dd><a href="">set 2</a></dd>
						</dl>
					</li>
					<li class="layui-nav-item"><a href="">退出</a></li>
				</ul>
			</div>

			<div class="layui-side layui-bg-black">
				<div class="layui-side-scroll">
					<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
					<ul class="layui-nav layui-nav-tree" lay-filter="test">
						<li class="layui-nav-item"><a th:href="'home'">主页</a></li>
						<li class="layui-nav-item">
							<a href="javascript:;">系统管理</a>
							<dl class="layui-nav-child">
								<dd><a href="1-1.html">用户综合管理</a></dd>
								<dd><a href="1-2.html">数据库管理</a></dd>
							</dl>
						</li>
						<li class="layui-nav-item layui-nav-itemed">
							<a href="javascript:;">学生管理</a>
							<dl class="layui-nav-child">
								<dd class="layui-this"><a th:href="'list'">学生信息浏览</a></dd>
								<dd><a th:href="'add'">学生信息登记</a></dd>
							</dl>
						</li>
						<li class="layui-nav-item">
							<a href="javascript:;">住宿管理</a>
							<dl class="layui-nav-child">
								<dd><a href="">入住管理</a></dd>
								<dd><a href="">宿舍管理</a></dd>
								<dd><a href="">学生退宿</a></dd>
								<dd><a href="">期末注销</a></dd>
							</dl>
						</li>
						<li class="layui-nav-item">
							<a href="javascript:;">查询管理</a>
							<dl class="layui-nav-child">
								<dd><a th:href="'selectroom'">寝室情况查询</a></dd>
								<dd><a th:href="'query'">学生情况查询</a></dd>
								<dd><a href="">来访情况查询</a></dd>
								<dd><a href="">设备情况查询</a></dd>
								<dd><a href="">电费情况查询</a></dd>
							</dl>
						</li>
						<li class="layui-nav-item">
							<a href="javascript:;">门卫管理</a>
							<dl class="layui-nav-child">
								<dd><a href="">来访登记</a></dd>
								<dd><a href="">结束登记</a></dd>
							</dl>
						</li>
						<li class="layui-nav-item">
							<a href="javascript:;">寝室管理</a>
							<dl class="layui-nav-child">
								<dd><a href="">寝室床位储息录用</a></dd>
								<dd><a href="">设备管理</a></dd>
								<dd><a href="">宿舍评比</a></dd>
								<dd><a href="">电费管理</a></dd>
							</dl>
						</li>
						<li class="layui-nav-item"><a href="">统计</a></li>
						<li class="layui-nav-item"><a href="">报表</a></li>
					</ul>
				</div>
			</div>

			<div class="layui-body" style="background-color: #F6F6F6;">
				<!-- 内容主体区域 -->
				<div style="padding: 20px;padding-top: 10px;">

					<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief" style="margin-top: 0px;">
						<ul class="layui-tab-title">
							<li class="layui-this">学生信息浏览</li>

						</ul>
						<div class="layui-tab-content">
							<div class="layui-tab-item layui-show">
								<div class="layui-form">
								  <table class="layui-table" >
								    <colgroup>
								      <col width="100">
								      <col width="100">
									  <col width="100">
									  <col width="100">
									  <col width="100">
									  <col width="100">
									  <col width="100">
									  <col width="100">
									  <col width="100">
									  <col width="100">
									 
									  
								    </colgroup>
								    <thead>
								      <tr>
								        <th>学号</th>
								        <th>姓名</th>
								        <th>性别</th>
								        <th>学院</th>
										<th>班级</th>
										<th>电话</th>
										<th>宿舍号</th>
										<th>状态</th>
										  <th>操作</th>
								      </tr> 
								    </thead>
								    <tbody>
								      <tr th:each="student:${studentList}">
								        <td th:text="${student.sid}">2018131001</td>
								        <td th:text="${student.name}">张三</td>
								        <td th:text="${student.sex}">1</td>
								        <td th:text="${student.academy}">计算机学院</td>
										<td th:text="${student.grade}">计算机</td>
										<td th:text="${student.tel}">10</td>
										<td th:text="${student.bid}+'-'+${student.did}">男</td>
										<td th:text="${student.state}">汉</td>
										  <td>
											  <div class="layui-form-item">
													  <a th:href="'update_1?sid='+${student.sid}" class="layui-btn" >修改</a>
											  </div>
											  <div class="layui-form-item">
													  <a  class="layui-btn" th:onclick="url(${student.sid})" id="del" >删除</a>
											  </div>

										  </td>

								      </tr>
								    </tbody>
								  </table>
								</div>
								  </tbody>
								</table>



							</div>

						</div>

					</div>

				</div>


			</div>


		</div>
        <script src="/js/home-script.js" charset="utf-8"></script>
		<script src="/layui/layui.js" charset="utf-8"></script>
		<script>
			//JavaScript 代码区域
			layui.use('element', function() {
				var element = layui.element;

			});
		</script>
		<script>
			var _hmt = _hmt || [];
			(function() {
				var hm = document.createElement("script");
				hm.src = "https://hm.baidu.com/hm.js?d214947968792b839fd669a4decaaffc";
				var s = document.getElementsByTagName("script")[0];
				s.parentNode.insertBefore(hm, s);
			})();
		</script>

        <script language="javascript">
            function url(m)
            { var obj = document.getElementById("del");
                var url = obj.getAttribute("href");
                if(confirm('确定删除吗？'))
                {obj.setAttribute("href","delete?sid=m");}
            }
        </script>
	</body>
</html>
